<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>添加编辑用户</title>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0" name="viewport">
    <link th:href="@{/css/bootstrap.css}" rel="stylesheet" type="text/css">
    <script th:src="@{/js/jquery-3.5.1.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/vue.min.js}"></script>

</head>
<body>
<div class="container-fluid">
    <div class="row">
        <h5>编辑用户</h5>
    </div>
    <form class="form-row" method="post" th:action="@{/saveuser}">
        <div class="form-group">
            <label for="account">账号</label>
            <input class="form-control" placeholder="请输入账号，字符不得少于6个" required th:field="*{user.account}"/>
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input class="form-control" placeholder="请输入密码，字符不得少于6个" required th:field="*{user.password}" type="password">
        </div>
        <div class="form-group">
            <label for="name">姓名</label>
            <input class="form-control" th:field="*{user.name}" type="text">
        </div>
        <div class="form-group">
            <label for="mobile">手机</label>
            <input class="form-control" th:field="*{user.mobile}" type="text">
        </div>
        <div class="form-group">
            <label for="email">电子邮件</label>
            <input class="form-control" th:field="*{user.email}" type="email">
            <input field="*{user.validstate}" type="hidden">
        </div>
        <div class="form-group">
            <button class="btn btn-primary" type="submit">保存</button>
        </div>
    </form>
</div>
</body>
</html>